package com.li.taskcenter.quartz;

import com.li.taskcenter.quartz.service.TestService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description:
 * @author: Lidong
 * @time: 2020/6/20 15:46
 **/
public class QuartzDemo implements Job {

    @Autowired
    TestService testService;

    //任务执行时候的方法
    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
//        testService.test1();
//        System.out.println("方法执行"+new Date());
    }
}
